package com.hzncc.flowable_diboot.vo;

import com.diboot.core.binding.annotation.*;
import com.diboot.core.vo.FileVO;
import com.diboot.core.vo.LabelValue;
import com.diboot.iam.entity.IamOrg;
import com.diboot.iam.entity.IamPosition;
import com.diboot.iam.entity.IamRole;
import com.diboot.iam.entity.IamUser;
import com.diboot.file.entity.FileRecord;
import com.diboot.tenant.entity.IamTenant;
import com.hzncc.flowable_diboot.entity.EquipmentMatter;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;
/**
* 设备问题 VO定义
* @author MyName
* @version 1.0
* @date 2024-07-04
* Copyright © MyCorp
*/
@Getter @Setter @Accessors(chain = true)
public class EquipmentMatterListVO extends EquipmentMatter  {
private static final long serialVersionUID = 1455659652207070875L;
    /**
    * 最终用户 关联信息
    */

    @BindField(
        entity = IamUser.class,
        field = "realname",
        condition = "this.end_user = id"
     )
    private String endUserLabel;

    /**
    * 问题类型 关联字典选项
    */
    @BindDict(
    type = "equipmentMatterType",
    field = "equipmentMatterType"
    )
    private LabelValue equipmentMatterTypeLabel;

    /**
    * 问题负责人 关联信息
    */

    @BindField(
        entity = IamUser.class,
        field = "realname",
        condition = "this.matter_manager = id"
     )
    private String matterManagerLabel;

    /**
    * 问题处理状态 关联字典选项
    */
    @BindDict(
    type = "equipmentMatterStatus",
    field = "equipmentMatterStatus"
    )
    private LabelValue equipmentMatterStatusLabel;

    /**
    * 设备问题级别 关联字典选项
    */
    @BindDict(
    type = "equipmentMatterLevel",
    field = "equipmentMatterLevel"
    )
    private LabelValue equipmentMatterLevelLabel;

    /**
    * 创建人 关联信息
    */

    @BindField(
        entity = IamUser.class,
        field = "realname",
        condition = "this.create_by = id"
     )
    private String createByLabel;

    /**
    * 更新人 关联信息
    */

    @BindField(
        entity = IamUser.class,
        field = "realname",
        condition = "this.update_by = id"
     )
    private String updateByLabel;

}